﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.mysql
{
	// Token: 0x0200014E RID: 334
	public class TMySQLBlock : TBlockSqlStatement
	{
		// Token: 0x06000B32 RID: 2866 RVA: 0x00305A4C File Offset: 0x00303C4C
		public TMySQLBlock(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmysqlblock;
		}

		// Token: 0x06000B33 RID: 2867 RVA: 0x00305A60 File Offset: 0x00303C60
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TBlockSqlNode tblockSqlNode = (TBlockSqlNode)this.rootNode;
			base.doParseStatement(psql);
			tblockSqlNode.Stmts.doParse(this, ESqlClause.unknown);
			for (int i = 0; i < tblockSqlNode.Stmts.size(); i++)
			{
				this.BodyStatements.add(tblockSqlNode.Stmts.getStatementSqlNode(i).Stmt);
			}
			return 0;
		}

		// Token: 0x06000B34 RID: 2868 RVA: 0x00305ACB File Offset: 0x00303CCB
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000B35 RID: 2869 RVA: 0x00305ADB File Offset: 0x00303CDB
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.BodyStatements.accept(v);
			v.postVisit(this);
		}
	}
}
